#include "TextManager.h"

TextManager::TextManager()
{
    //dtor
}
TextManager::~TextManager()
{
    //dtor
}
void TextManager::addMessage(string text)
{
    message_.push_back(text);

}
void TextManager::displayMessage()
{
    vector<string>::iterator itr;
    for(itr=message_.begin();itr!=message_.end();++itr){
        Affichage::affiche(*itr);
        Affichage::sautLigne();
    }
    message_.clear();
}
string TextManager::to_string(int a)
{
    ostringstream ss;
    ss<< a;
    return ss.str();
}
